<?php 
class Application_Model_ServiceSetting extends Application_Model_DomainObject {
    
    protected $_id;
    
    protected $_userId;//用户id

    protected $_type;//类型  国际运单或代购

    protected $_setting;

    protected $_option;

    protected $_value;

    protected $_dateCreated;
    /**
     * 国际运单类型
     */
    const Type_Waybill = 1;
    /**
     * 代购类型
     */
    const Type_Order = 2;

    public static function getByInfo($userId,$type){
        return  Application_Model_ServiceSetting::getDao()->queryAll(array('userId'=>$userId,'type'=>$type));
    }
    
}